package com.kfm.jdbc.day0403;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.Date;

@KFM(value = "KFM", name = "kfm")
public class Demo10 {


    @KFM(value = "KFM")
    public static void main(String[] args) {
        Class<A> cla = A.class;


        // 是否有注解
        boolean annotationPresent = cla.isAnnotationPresent(KFM.class);
        System.out.println(annotationPresent);

        cla.getAnnotations();
        cla.getDeclaredAnnotations();

    }
}

class A extends Demo10{

}
